-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
81 lines (75 loc) · 2.31 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
set mouse=a
set number
"Disable compatibility with vi which can cause unexpected issues.
set nocompatible
"
"===========SYNTAX===========
"Enable type file detection. Vim will be able to try to detect the type of file in use.
filetype on
"Enable plugins and load plugin for the detected file type.
filetype plugin on
" Load an indent file for the detected file type.
filetype indent on
" help w/ tabs
set autoindent
set smartindent
set cindent
"set tab to match ecole42
set tabstop=4
set shiftwidth=4
set softtabstop=4
" Do not wrap lines. Allow long lines to extend as far as the line goes.
set nowrap
"set colorcolumn=81
"===========CMD===========
"Help file related settings
" search down into subfolders with :find just use wildcard operator !!
set path+=**
" display all matching files when tab complete
set wildmenu
" make wildmenu behave like similar to Bash completion.
set wildmode=list:longest
" ignore files which cant be modified by vim
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
" show partial command you type in the last line of the screen
set showcmd
" Show the mode you are on the last line.
set showmode
" Show matching words during a search.
set showmatch
" Use highlighting when doing a search.
set hlsearch
set incsearch
" ignorecase when searching
set ignorecase
" Set the commands to save in history default number is 20.
set history=1000
let mapleader = " "
nnoremap <leader>e :bufdo e!<CR>
noremap <C-h> <C-w>h
noremap <C-j> <C-w>j
noremap <C-k> <C-w>k
noremap <C-l> <C-w>l
"nnoremap <leader>c :colo eva<CR>
"==========NERDTree=========
" Start NERDTree and put the cursor back in the other window.
"autocmd VimEnter * NERDTree | wincmd p
" Set keybindings
nnoremap <C-n> :NERDTree<CR>
nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-t> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR>
" Exit Vim if NERDTree is the only window remaining in the only tab.
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
"==========TIDAL=============
"call plug#begin('~/.vim/plugged')
"Plug 'tidalcycles/vim-tidal'
"call plug#end()
"==========COLORS============
syntax enable
"if (&t_Co != 256)
" set t_Co=256
"endif
colorscheme default
"autocmd BufRead,BufNewFile * syn match parens /[(){}]/
hi LineNr ctermfg=248 cterm=italic