-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
43 lines (30 loc) · 844 Bytes
/
vimrc
File metadata and controls
43 lines (30 loc) · 844 Bytes
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
execute pathogen#infect()
syntax on
filetype on
filetype plugin on
filetype indent on
" treat tikz as tex files
au BufNewFile,BufRead *.tikz set filetype=tex
set number " shows line number
set tw=90
" indent
set expandtab
set shiftwidth=2
set tabstop=2
set autoindent
set smartindent
set cindent
set cinoptions+=l1 " for switch case alignement
set cinoptions+=N-s " for namespace no indentation
set cinoptions+=g0 " for classes no indentation
set cinoptions+=g-1
" spell checker
"set spell spelllang=en_us,de_ch
" NERDTree
let g:NERDTreeWinSize=25
"This mapping uses <cword> to get the word under the cursor, and searches for
"it in the current directory and all subdirectories, opening the quickfix
"window when done
map <F4> :execute "vimgrep /" . expand("<cword>") . "/j **" <Bar> cw<CR>
" fortran
let fortran_do_enddo=1