-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
71 lines (60 loc) · 1.29 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
set nu
set rnu
syntax on
set guifont=Consolas:h12
" colorscheme Anchor12
set backspace=indent,eol,start
set noerrorbells
set belloff=all
set tabstop=4 softtabstop=4
set shiftwidth=4
set expandtab
set smartindent
set nowrap
set smartcase
set noswapfile
set nobackup
set undodir=~/.vim/undodir
set undofile
set incsearch
" set colorcolumn=80
" highlight ColorColumn guibg=DarkGray
" highlight EndOfBuffer ctermbg=bg
"screen size
if has("gui_running")
" GUI is running or is about to start.
" Maximize gvim window (for an alternative on Windows, see simalt below).
set lines=999 columns=999
else
" This is console Vim.
if exists("+lines")
set lines=50
endif
if exists("+columns")
set columns=100
endif
endif
" function to press f11 to toggle bar
function! ToggleGUICruft()
if &guioptions=='i'
exec('set guioptions=imTrL')
else
exec('set guioptions=i')
endif
endfunction
map <F11> <Esc>:call ToggleGUICruft()<cr>
" by default, hide gui menus
set guioptions=i
"map previous and next buttons
map <F2> :bprev<CR>
map <F3> :bnext<CR>
set hlsearch
" ctrl l redraws teh screen and removes any highlighting
nnoremap <silent> <C-l> :nohl<CR>
"Disable Arrow Keys
noremap <Up> <Nop>
noremap <Down> <Nop>
noremap <Left> <Nop>
noremap <Right> <Nop>
" Toggle Paste mode
set pastetoggle=<F3>