-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.vim
More file actions
43 lines (32 loc) · 1.03 KB
/
init.vim
File metadata and controls
43 lines (32 loc) · 1.03 KB
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
colorscheme industry
filetype plugin indent on
set tabstop=4
set shiftwidth=4
set expandtab
" Cursor finding type \c to highlight current line and column
:hi CursorLine cterm=NONE ctermbg=darkred ctermfg=white guibg=darkred guifg=white
:hi CursorColumn cterm=NONE ctermbg=darkred ctermfg=white guibg=darkred guifg=white
:nnoremap <Leader>c :set cursorline! cursorcolumn!<CR>
" backspace to remove these chars as well
:set backspace=indent,eol,start
:set foldmethod=marker
:set foldmarker=#if,#endif
augroup remember_folds
autocmd!
autocmd BufWinLeave ?* mkview | filetype detect
autocmd BufWinEnter ?* silent loadview | filetype detect
augroup END
command! Untab set expandtab | %retab!
command! Tab set noexpandtab | %retab! | set expandtab
let maplocalleader = "-"
" Normal mode
nnoremap <C-j> :m .+1<CR>==
nnoremap <C-k> :m .-2<CR>==
" Insert mode
inoremap <C-j> <ESC>:m .+1<CR>==gi
inoremap <C-k> <ESC>:m .-2<CR>==gi
inoremap ;; <Esc>
" Visual mode
vnoremap <C-j> :m '>+1<CR>gv=gv
vnoremap <C-k> :m '<-2<CR>gv=gv
syntax on