-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_vimrc
More file actions
84 lines (73 loc) · 1.57 KB
/
_vimrc
File metadata and controls
84 lines (73 loc) · 1.57 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
78
79
80
81
82
83
84
" vim-plug
call plug#begin('$USERPROFILE/vimfiles/plug')
Plug 'bluz71/vim-moonfly-colors'
Plug 'Raimondi/delimitMate'
Plug 'tpope/vim-commentary'
Plug 'pangloss/vim-javascript'
Plug 'hdima/python-syntax'
Plug 'NLKNguyen/c-syntax.vim'
Plug 'ervandew/supertab'
Plug 'tpope/vim-surround'
Plug 'vim-latex/vim-latex'
call plug#end()
" Editor tweaks
set ruler
set laststatus=2
set softtabstop=4
set expandtab
set shiftwidth=4
set smarttab
set autoindent
set smartindent
set cindent
set paste
set number
set relativenumber
nnoremap <F2> :set rnu!<CR>
set hidden
set backspace=indent,eol,start
set autoread
set showmode
nnoremap p p=`]<C-o>
nnoremap P P=`]<C-o>
set nowrap
set incsearch
set hlsearch
set ignorecase
set smartcase
set incsearch
set colorcolumn=101
set lines=65
set scrolloff=3
set columns=110
set guioptions-=T
filetype indent plugin on
set nocompatible
set noerrorbells visualbell t_vb=
autocmd GUIEnter * set visualbell t_vb=
syntax on
" Windows keystrokes
source $VIMRUNTIME/mswin.vim
" Visuals
" Comment out font if not on Windows
if has('gui_running')
set guifont=Consolas:h11
endif
colorscheme moonfly
" Backups
set undofile
set backup
" Windows
set dir=%USERPROFILE%\\vimfiles\\swap//,.,C:\\tmp,C:\\temp
set backupdir=%USERPROFILE%\\vimfiles\\backup//,.,C:\\tmp,C:\\temp
set undodir=%USERPROFILE%\\vimfiles\\undo//,.,C:\\tmp,C:\\temp
" Linux
" set undodir=~/.vim/undo//
" set backupdir=~/.vim/backup//
" set directory=~/.vim/swp//
" ensure file format is unix
set fileformat=unix
set fileformats=unix,dos
" Plugins
let delimitMate_expand_cr=1
let g:tex_flavor='latex'