-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
99 lines (80 loc) · 1.78 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
97
98
99
filetype plugin indent on
"colorscheme monokai
syntax on
set autoread
set autowrite
set nobackup
set nowb
set noswapfile
set number
set wildmenu
set wildignore=*.o,*~,*.pyc,*.aux
set wildmode=longest,list
set magic
"set modeline
"set laststatus=2
set nomodeline
set laststatus=0
set showcmd
set showmatch
set mat=2
set incsearch
set ignorecase
set smartcase
set hlsearch
nnoremap \ :noh <cr>
set so=5
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set smarttab
set nojoinspaces
set autoindent
set smartindent
set title
set title titlestring=%m%t
set t_Co=256
set undodir=$HOME/.vim-undo
set undofile
set scrolloff=999
nnoremap <space> :
"nnoremap <C-h> <C-w><C-h>
"nnoremap <C-j> <C-w><C-j>
"nnoremap <C-k> <C-w><C-k>
"nnoremap <C-l> <C-w><C-l>
"nnoremap <C-n> :tabp<cr>
"nnoremap <C-m> :tabn<cr>
"nnoremap <A-n> :tabm -1<cr>
"nnoremap <A-m> :tabm +1<cr>
inoremap § <esc>
vnoremap § <esc>
map <F9> :set invnumber <cr>
augroup CursorLine
au!
au VimEnter,WinEnter,BufWinEnter * setlocal cursorline
au WinLeave * setlocal nocursorline
augroup END
set shell=/bin/bash
set statusline=%r%f%m%=%l/%L\ %y
let fortran_free_source=1
if filereadable(".vim.local")
so .vim.local
endif
if filereadable("vim.local")
so vim.local
endif
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
augroup filetype_tsv
au BufReadPost,BufNewFile *.tsv setlocal noexpandtab shiftwidth=20 softtabstop=20 tabstop=20
augroup END
augroup filetype_exec
au FileType sh nnoremap K :w !bash<cr>
au FileType sh nnoremap L :.w !bash<cr>
au FileType sh vnoremap L :w !bash<cr>
au FileType python nnoremap K :w !python<cr>
au FileType julia nnoremap K :w !julia<cr>
au Filetype perl nnoremap K :w !perl<cr>
au Filetype gnuplot nnoremap K :!gnuplot %<cr>
augroup END