-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
36 lines (31 loc) · 1 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
execute pathogen#infect()
filetype plugin indent on
syntax on
set tabstop=2 " The width of a TAB is set to 4.
" Still it is a \t. It is just that
" Vim will interpret it to be having
" a width of 2.
set shiftwidth=2 " Indents will have a width of 2
set softtabstop=2 " Sets the number of columns for a TAB
set expandtab " Expand TABs to spaces
set number " Set line number
set smartindent
set autoindent
set visualbell
set colorcolumn=80
set shell=powershell
set shellcmdflag=-command
set fileformat=unix
set list listchars=tab:\ \ ,extends:?,precedes:?,trail:~
set list
nnoremap <F6> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar><CR>
" put this in your .vimrc or source it from your .vimrc
function! ToggleRelativeNumber()
if &relativenumber
set norelativenumber
else
set relativenumber
endif
endfunction
map <F4> :call ToggleRelativeNumber() <CR>
let g:Tex_CompileRule_pdf='xelatex -interaction=nonstopmode $*'