forked from sez11a/dotvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
137 lines (117 loc) · 2.65 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
" Pathogen
execute pathogen#infect()
execute pathogen#helptags()
syntax on
filetype plugin indent on
" Set the font and window size
if has ('gui_running')
"set guifont=PT\ Mono\ 10
"set guifont=Envy\ Code\ R\ 10
set guifont=Anonymous\ Pro\ 12
set lines=50
set columns=100
endif
" colorscheme slate
" colorscheme candycode
" colorscheme wuye
set background=dark
" colorscheme solarized
" colorscheme adaryn
" colorscheme af
" colorscheme xoria256-pluk
" colorscheme black_angus
" colorscheme kolor
" colorscheme lucius
" colorscheme jellybeans
colorscheme xoria256
" No vi compatibility
set nocompatible
set encoding=utf-8
let g:airline_detect_whitespace=0
let g:airline_powerline_fonts = 1
set laststatus=2
set tabstop=4
set expandtab
set softtabstop=4
set shiftwidth=4
set ignorecase
set smartcase
set number
set wrap
set linebreak
set nolist
set textwidth=0
"set clipboard=unnamedplus
" nnoremap j gj
" nnoremap k gk
" Save when focus is lost
" au FocusLost * :wa
" Turn on omnicompletion
filetype plugin on
set ofu=syntaxcomplete#Complete
let g:vim_markdown_folding_disabled=1
" Custom key combos
nmap <silent> <F3> :NERDTreeToggle<CR>
func! WordProcessorMode()
" setlocal formatoptions=1
map j gj
map k gk
setlocal spell spelllang=en_us
set thesaurus+=/home/rsezov/.vim/thesaurus/mthesaur.txt
set complete+=s
" setlocal linebreak
set wrap
set textwidth=80
" Look like WordStar
" colorscheme adaryn
colorscheme xoria256-blue
" colorscheme transparent
filetype detect
endfu
com! WP call WordProcessorMode()
" Back to code mode
func! CodeMode()
setlocal expandtab
set textwidth=0
colorscheme xoria256
filetype detect
endfu
com! CODE call CodeMode()
" Idea: put a WRITE function here
" that makes the font really big. Then
" vim can be maximized so the screen fills
" with a minimalistic editor with abou 90 columns
" to the width of the screen.
"
""" FocusMode
function! ToggleFocusMode()
if (&foldcolumn != 12)
" set laststatus=0
set numberwidth=10
set foldcolumn=12
" set noruler
set nonumber
hi FoldColumn ctermbg=none
hi LineNr ctermfg=0 ctermbg=none
hi NonText ctermfg=0
if has ('gui_running')
" set guifont=Envy\ Code\ R\ 18
set guifont=Anonymous\ Pro\ 18
set guioptions-=T
endif
else
set laststatus=2
set numberwidth=4
set foldcolumn=0
set ruler
set number
execute 'colorscheme ' . g:colors_name
if has ('gui_running')
" set guifont=Envy\ Code\ R\ 10
set guifont=Anonymous\ Pro\ 12
set guioptions+=T
endif
endif
endfunc
nnoremap <F4> :call ToggleFocusMode()<cr>
nnoremap <F5> :Latexmk<cr>