This repository was archived by the owner on May 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc.local
More file actions
55 lines (42 loc) · 1.22 KB
/
vimrc.local
File metadata and controls
55 lines (42 loc) · 1.22 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
" reset the leader and localleader
let mapleader = "\\"
let maplocalleader = "\'"
" set nowrap
set wrap linebreak nolist
set listchars=tab:>-,trail:-
" create a color column for the 80 character mark
set colorcolumn=+5
let &colorcolumn=join(range(81,999),",")
highlight ColorColumn ctermbg=235 guibg=#ababab
" Solarized configuration
set background=dark
let g:solarized_termcolors=256
colorscheme solarized
" Fat finger mappings
:command Wq wq
:command Q q
:command Wa wa
" Shortcuts
nnoremap <c-f>s :w<cr> " Control-f-s for saving files in normal mode
nnoremap <leader>evc :vsp ~/.vimrc.local<cr> "evc to edit the vimrc.local
nnoremap <leader>svc :so $MYVIMRC<cr> "evc to source the vimrc.local
" Utilities
nnoremap <leader>todo :vsp ~/Dropbox/Todo/todo.txt<cr>
set winwidth=15
set winminwidth=15
set winwidth=999
set winheight=10
set winminheight=10
set winheight=999
" Use a relative numbering system
set relativenumber
" Notes.vim configuration
let g:notes_directories = ['~/Dropbox/Notes']
let g:notes_title_sync ='rename_file'
let g:notes_suffix = '.txt'
let mapleader = "\\\\"
let maplocalleader = "\'"
" Remove warnings if not on VIM 8
let g:go_version_warning = 0
" Markdown folding off
let g:vim_markdown_folding_disabled = 1