-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
executable file
·52 lines (40 loc) · 1.35 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
""" General settings
set nocompatible " Use vim defaults not vi defaults
set smartindent " Auto indentation
set nohidden " Close buffers when file is closed
set ignorecase " ignore case for search
set ts=4 " Width of a tab (tab stop)
set sw=4 " Width for >> and << commands
set sts=4 " Tabs spacing (soft tab stop)
"""set tw=79 " Max line width
set smarttab " Alignment for tab in front of line
set expandtab " Convert tabs to Spaces
syntax on " Syntax highlighting
set go+=a " support for systemp clipboard
filetype on
filetype plugin on
""" Key mappings
" Tab for next tab
nnoremap <Tab> :tabn<CR>
" Shift+Tab for previous tab
nnoremap <S-Tab> :tabp<CR>
""" UI Options
set guioptions-=T " Remove toolbar for gvim
set guioptions-=m "remove menu bar
"""set guifont=Courier\ New\ 9 " " Set font
if has("gui_running")
set lines=40 columns=120 " gvim size
endif
""" C/C++
" Doxygen style comments
"autocmd Filetype c,cpp lollerz
au Filetype c,cpp set comments-=://
au Filetype c,cpp set comments+=:///
au Filetype c,cpp set comments+=://
""" Python
" auto complete
let g:pydiction_location = '/home/hrishi/.vim/pydict/complete-dict'
""" Json view
autocmd BufRead *.json set filetype=json
"""au! Syntax json source ~/.vim/json.vim
color desert