forked from SunghoLee/mvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
96 lines (77 loc) · 2.16 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
set number
set nocompatible " be iMproved, required
set autoindent
set smartindent
set tabstop=4
set shiftwidth=2
set softtabstop=4
set smarttab
set expandtab
set textwidth=0
set cole=0
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call plug#begin('~/.vim/plugged')
" let Vundle manage Vundle, required
Plug 'VundleVim/Vundle.vim'
Plug 'vim-airline/vim-airline'
Plug 'jpo/vim-railscasts-theme'
Plug 'Yggdroot/indentLine'
Plug 'scrooloose/nerdtree'
Plug 'airblade/vim-gitgutter'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'morhetz/gruvbox'
Plug 'whonore/coqtail'
Plug 'junegunn/vim-easy-align'
Plug 'fsharp/vim-fsharp', {
\ 'for': 'fsharp',
\ 'do': 'make fsautocomplete',
\}
call plug#end() " required
colorscheme gruvbox
set background=dark
map <C-n> <ESC>:NERDTreeToggle<CR>
" Start interactive EasyAlign in visual mode (e.g. vipga)
xmap ga <Plug>(EasyAlign)
" Start interactive EasyAlign for a motion/text object (e.g. gaip)
nmap ga <Plug>(EasyAlign)
" for Coqtail
nmap <C-k> <leader>cj
nmap <C-j> <leader>ck
nmap <C-l> <leader>cl
nnoremap H gT
nnoremap L gt
" ctrlpvim: ignore some folders and files for finding
let g:ctrlp_custom_ignore = {
\ 'dir': '\.git$\|public$\|log$\|tmp$\vendor$',
\ 'file': '\v\.(exe|sh|jar|class)$'
\}
" clear the conceal mode in tex files
let g:tx_conceal=''
" ctrlpvim: setting a path where finding a file
let g:ctrlp_working_path_mode = 'ra'
" ctrlpvim: setting mru as default mode
let g:ctrlp_map='<C-p>'
" ctrlpvim: removing the limit of maxinum number of files
let g:ctrlp_max_files=0
" gruvbox: making background darker
let g:gruvbox_contrast_dark="hard"
let g:indentLine_setColors = 0
let g:tex_conceal = ''
let &conceallevel = 0
"setl tw=0
"setl fo=
"setl nojs
"setl nosmartindent
" Strip trailing whitespaces
function! <SID>StripTrailingWhitespaces()
let l = line(".")
let c = col(".")
%s/\s\+$//e
call cursor(l, c)
endfun
" For all file types
autocmd BufWritePre * :call <SID>StripTrailingWhitespaces()
" Using file extension
"autocmd BufWritePre *.h,*.c,*.java :call <SID>StripTrailingWhitespaces()