update editor confs
This commit is contained in:
@@ -130,7 +130,7 @@ Make ESC quit prompts.
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Soft wrap
|
*** Soft wrap
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp :tangle no
|
||||||
(global-visual-line-mode t)
|
(global-visual-line-mode t)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
@@ -318,7 +318,7 @@ Show me color codes as colors!
|
|||||||
(c-mode . (lambda() (rainbow-mode -1))))
|
(c-mode . (lambda() (rainbow-mode -1))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Whitespaces and indentation
|
*** Whitespaces
|
||||||
Show me trailing white-spaces.
|
Show me trailing white-spaces.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(global-whitespace-mode t)
|
(global-whitespace-mode t)
|
||||||
@@ -549,6 +549,12 @@ Use some magic heuristics for indentation.
|
|||||||
(markdown-mode . dtrt-indent-mode))
|
(markdown-mode . dtrt-indent-mode))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(setq ; c-default-style "bsd"
|
||||||
|
c-basic-offset 4)
|
||||||
|
(setq-default indent-tabs-mode nil)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
*** Auto pairs
|
*** Auto pairs
|
||||||
Auto matching pairs is nice.
|
Auto matching pairs is nice.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
@@ -603,13 +609,6 @@ Sometimes, a big red TODO is more intimidating than one with normal text color.
|
|||||||
("UNUSED" . hl-todo-UNUSED))))
|
("UNUSED" . hl-todo-UNUSED))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Code style
|
|
||||||
#+begin_src emacs-lisp
|
|
||||||
(setq ; c-default-style "bsd"
|
|
||||||
c-basic-offset 4)
|
|
||||||
(setq-default indent-tabs-mode nil)
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
|
|
||||||
** Code suggestions
|
** Code suggestions
|
||||||
*** company
|
*** company
|
||||||
|
|||||||
@@ -14,8 +14,9 @@ endif
|
|||||||
call plug#begin()
|
call plug#begin()
|
||||||
|
|
||||||
Plug 'altercation/vim-colors-solarized' " color scheme
|
Plug 'altercation/vim-colors-solarized' " color scheme
|
||||||
Plug 'tpope/vim-sleuth' " heuristic file indendation
|
Plug 'tpope/vim-sleuth' " heuristic file indendation
|
||||||
Plug 'jiangmiao/auto-pairs' " pair completion
|
Plug 'jiangmiao/auto-pairs' " pair completion
|
||||||
|
Plug 'ctrlpvim/ctrlp.vim' " file finder
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
" ============================== Colors
|
" ============================== Colors
|
||||||
@@ -26,43 +27,44 @@ hi Normal guibg=NONE ctermbg=NONE
|
|||||||
|
|
||||||
" ============================== General
|
" ============================== General
|
||||||
filetype indent plugin on
|
filetype indent plugin on
|
||||||
set number " show line number
|
set number " show line number
|
||||||
set relativenumber " show relative line number
|
set relativenumber " show relative line number
|
||||||
set cursorline " highlight current line
|
set cursorline " highlight current line
|
||||||
set ruler " show line and row at bottom right
|
set ruler " show line and row at bottom right
|
||||||
|
set colorcolumn=80
|
||||||
|
|
||||||
set showmatch " highlights paranthesis
|
set showmatch " highlights paranthesis
|
||||||
set hidden " allow moving to a new buffer without saving
|
set hidden " allow moving to a new buffer without saving
|
||||||
set mat=5 " idk
|
set noswapfile " don't create a swap file
|
||||||
set colorcolumn=1337
|
set confirm " can't quit without saving
|
||||||
set noswapfile " can be problematic on some systems
|
set noshowmode " don't show mode in status
|
||||||
set confirm " can't quit without saving
|
set noshowcmd " don't show command in status
|
||||||
set noshowmode " don't show mode in status
|
|
||||||
set noshowcmd " don't show command in status
|
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
set mouse=a " a=on, c=off
|
set mouse=a " a=on, c=off
|
||||||
set undolevels=1337
|
set undolevels=1337
|
||||||
set backspace=indent,eol,start " openbsd doesnt let me delete stuff
|
set backspace=indent,eol,start " always delete with backspace"
|
||||||
set wildmenu " autocomplete :e
|
set wildmenu " autocomplete :e
|
||||||
set scrolloff=5 " min lines above or below the cursor
|
set scrolloff=5 " minimum lines above or below the cursor
|
||||||
|
|
||||||
" ============================== Statusline
|
" ============================== Statusline
|
||||||
set laststatus=1 " i dont need a statusline
|
set laststatus=1 " dont show statusline
|
||||||
set showtabline=1 " tabline
|
set showtabline=1 " dont show tabline
|
||||||
|
|
||||||
" ============================== Indents and Whitespaces
|
" ============================== Indents and Whitespaces
|
||||||
set list
|
set list
|
||||||
set listchars=tab:──\ ,extends:›,precedes:‹,nbsp:·,trail:·
|
set listchars=tab:──\ ,extends:›,precedes:‹,nbsp:·,trail:· " show chars for whitespaces
|
||||||
set fillchars+=vert:\ "don't draw verticle split
|
set fillchars+=vert:\ " don't draw verticle split
|
||||||
|
|
||||||
|
" show trailing whitespaces in red
|
||||||
highlight ExtraWhitespace ctermbg=red guibg=red
|
highlight ExtraWhitespace ctermbg=red guibg=red
|
||||||
match ExtraWhitespace /\s\+\%#\@<!$/
|
match ExtraWhitespace /\s\+\%#\@<!$/
|
||||||
|
|
||||||
" ============================== Search
|
" ============================== Search
|
||||||
set incsearch " incremental search
|
set incsearch " incremental search
|
||||||
set ignorecase " ignore case
|
set ignorecase " ignore case
|
||||||
set smartcase " -> unless capitol letters
|
set smartcase " -> unless capitol letters
|
||||||
set hlsearch " highlight all results
|
set hlsearch " highlight all results
|
||||||
|
set mat=5
|
||||||
|
|
||||||
" ============================== Cursor Thiccness
|
" ============================== Cursor Thiccness
|
||||||
let &t_SI = "\<Esc>[6 q"
|
let &t_SI = "\<Esc>[6 q"
|
||||||
@@ -70,12 +72,9 @@ let &t_SR = "\<Esc>[4 q"
|
|||||||
let &t_EI = "\<Esc>[2 q"
|
let &t_EI = "\<Esc>[2 q"
|
||||||
|
|
||||||
" ============================== netrw
|
" ============================== netrw
|
||||||
let g:netrw_winsize = 25 " width
|
let g:netrw_winsize = 25 " width
|
||||||
let g:netrw_liststyle = 3 " Tree-like structure
|
let g:netrw_liststyle = 3 " Tree-like structure
|
||||||
let g:netrw_banner = 0 " Remove useless banner at the top of netrw
|
let g:netrw_banner = 0 " Remove useless banner at the top of netrw
|
||||||
|
|
||||||
" ============================== Macros and Mappings
|
" ============================== Macros and Mappings
|
||||||
cmap Wq wq
|
map <leader>e :CtrlP<CR> " file find
|
||||||
cmap Q q
|
|
||||||
cmap W w
|
|
||||||
cmap q1 q!
|
|
||||||
|
|||||||
Reference in New Issue
Block a user