-
Notifications
You must be signed in to change notification settings - Fork 6
/
.vim_general
75 lines (68 loc) · 1.47 KB
/
.vim_general
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
"***********************
"Faster split navigation
"***********************
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
"***************
"HJKL navigation
"***************
nnoremap <Left> :echoe "Use h"<CR>
nnoremap <Right> :echoe "Use l"<CR>
nnoremap <Up> :echoe "Use k"<CR>
nnoremap <Down> :echoe "Use j"<CR>
"****************
"General settings
"****************
set autoindent
set autowrite
set backspace=2
set complete=.,w,b
set encoding=utf-8
set foldmethod=indent
set foldlevel=1
set hidden
set history=500
set hlsearch
set incsearch
set lazyredraw
set list listchars=tab:\-\-,trail:·
set modelines=0
set noswapfile
set number
set numberwidth=5
set relativenumber
set ruler
set shell=/bin/bash
set showmode
set splitbelow
set splitright
set textwidth=78
set ttimeout
set ttimeoutlen=20
set ttyfast
set wildmenu
set wildmode=list:longest,full
"******************
"Softtabs, 2 spaces
"******************
set expandtab
set shiftwidth=2
set softtabstop=2
set tabstop=2
"***************
"Search settings
"***************
set smartcase
set ignorecase
"********************
"Highlight cursor row
"********************
au WinLeave * set nocursorline nocursorcolumn
au WinEnter * set cursorline
set cursorline
"********************************************************
"Ensure format options are set for line wrapping purposes
"********************************************************
autocmd BufNewFile,BufRead * setlocal formatoptions+=croqlt