-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.vim
More file actions
77 lines (52 loc) · 1.96 KB
/
Copy pathinit.vim
File metadata and controls
77 lines (52 loc) · 1.96 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
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
" Commands: https://neovim.io/doc/user/vimindex/ (:help index)
" Options: https://neovim.io/doc/user/options/ (:help options)
" Quick reference: https://neovim.io/doc/user/quickref/ (:help quickref)
""" plugins
call plug#begin()
Plug 'shaunsingh/solarized.nvim'
call plug#end()
""" colors
colorscheme solarized
hi StatusLine guifg=#fdf6e3 guibg=#586e75 gui=bold
hi StatusLineNC guifg=#93a1a1 guibg=#073642 gui=bold
hi Search guifg=#fdf6e3 guibg=#ce86a9 gui=bold
hi CurSearch guifg=#fdf6e3 guibg=#ce86a9 gui=bold
hi IncSearch guifg=#fdf6e3 guibg=#ce86a9 gui=bold
""" editing
filetype plugin indent on " detect file type
set number " line numbers
set relativenumber " relative line numbers
set scrolloff=5 " at least 5 lines above/below cursor
set tabstop=4 " width of tabs
set shiftwidth=4 " when indenting with '>', indent this far
set backspace=indent,eol,start " backspace over these
set nomodeline " prevent vi:|vim:|ex: in files from setting options
""" search
set incsearch " incremental search
set hlsearch " highlight the search
set ignorecase " search ignoring case
set smartcase " except when using capital letters
nnoremap <leader><space> :nohlsearch<CR>
""" whitespace
set listchars=tab:>~,trail:·,space:·
noremap <F8> :set list!<CR>
""" navigation
nnoremap <C-j> :bp<CR>
nnoremap <C-k> :bn<CR>
nnoremap <leader>d :bd<CR>
nnoremap <leader>l :buffers<CR>:buffer<Space>
nnoremap <leader>w <C-w><C-w>
" no pressing shift for commands
noremap ; :
noremap , ;
" one keystroke for common commands
nnoremap q :q<CR>
nnoremap w :w<CR>
" spacebar is easier to reach than backslash
map <space> <leader>
""" netrw
let g:netrw_liststyle = 3 " file tree list style
let g:netrw_banner = 0 " remove banner
let g:netrw_browse_split = 4 " open files in previous window
let g:netrw_winsize = 25 " 25 percent width
nnoremap <C-b> :Lexplore<CR>