-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvimrc
55 lines (45 loc) · 1.5 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
" General
set number " Show line numbers
set linebreak " Break lines at word (requires Wrap lines)
set showbreak=+++ " Wrap-broken line prefix
" set textwidth=80 " Line wrap (number of cols)
set showmatch " Highlight matching brace
set visualbell " Use visual bell (no beeping)
set hlsearch " Highlight all search results
set smartcase " Enable smart-case search
set ignorecase " Always case-insensitive
set incsearch " Searches for strings incrementally
set autoindent " Auto-indent new lines
set smartindent " Enable smart-indent
set smarttab " Enable smart-tabs
set softtabstop=4 " Number of spaces per Tab
" Advanced
set confirm " Prompt confirmation dialogs
set ruler " Show row and column ruler information
set backupdir=~/backup/vim " Backup directories
set undolevels=1000 " Number of undo levels
set backspace=indent,eol,start " Backspace behaviour
set ttymouse=sgr " Fix mouse issue using Alacritty terminal
map <C-n> :NERDTreeToggle<CR>
set updatetime=100
set noshowmode
set laststatus=2
if !has('gui_running')
set t_Co=256
endif
let g:lightline = {
\ 'colorscheme': 'nord',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ],
\ 'right': [ [ 'lineinfo' ],
\ [ 'percent' ],
\ [ 'fileformat', 'fileencoding', 'filetype' ] ]
\ },
\ 'component_function': {
\ 'gitbranch': 'FugitiveHead',
\ },
\}
colorscheme nord
syntax on
map <F2> :! pdflatex %<CR><CR> <bar> :! mopen $(echo % \| sed 's/tex$/pdf/') & disown<CR><CR>