-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.vim
executable file
·59 lines (48 loc) · 2.46 KB
/
init.vim
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
" General
set nocompatible " disable compatibility to old-time vi
set mouse=a " enable mouse click
set clipboard=unnamedplus " using system clipboard
set shell=/bin/zsh " can't use fish from nvim just now (not POSIX compliant)
set encoding=utf-8 " for foreign languages
" Search
set hlsearch " highlight search
set incsearch " incremental search
set showmatch " show matching
set ignorecase " case insensitive
set smartcase " smart case setting
set gdefault " graphics default
set path+=** " provide tab-completion for all file related tasks
set wildmenu " display all matching files when using tab complete
" Editor settings
set ttyfast " Speed up scrolling in Vim
set tabstop=3 " number of columns occupied by a tab
set softtabstop=3 " see multiple spaces as tabstops so <BS> does the right thing
set expandtab " converts tabs to white space
set shiftwidth=3 " width for autoindents
set autoindent " indent a new line the same amount as the line just typed
set smartindent " smart indent
set number " add line numbers
" set relativenumber " enable relative numbers (if interest)
set wildmode=longest,list " get bash-like tab completions
set cc=80 " set an 80 column border for good coding style
set cursorline " highlight current cursorline
set scrolloff=2 " keep lines below cursor when scrolling
set sidescrolloff=5 " keep lines below cursor when scrolling
" Syntax
filetype plugin indent on "allow auto-indenting depending on file type
syntax on " syntax highlighting
filetype plugin on
inoremap jj <Esc> " jk as ESC
vnoremap jj <Esc> " jk as ESC
" set spell " enable spell check (may need to download language package)
" set noswapfile " disable creating swap file
" set backupdir=~/.cache/vim " Directory to store backup files.
let mapleader = "\<Space>" " space as command key
nmap <leader>s :w " space s -> save
nmap <leader>; :buffers<CR> " show buffers
" GUI
colorscheme lunaperche " use colorscheme <tab> to see all colorschemes
set termguicolors " activate color
highlight ColorColumn ctermbg=235 guibg=#2c2d27
set colorcolumn=80 " colored column
set noshowmode