Update linebreak settings with vim
This commit is contained in:
parent
d85f559b43
commit
baaf2ee98d
38
vim.org
38
vim.org
@ -16,7 +16,7 @@
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
||||
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
||||
|
||||
#+PROPERTY: header-args+ :comments none
|
||||
#+PROPERTY: header-args :comments none
|
||||
#+PROPERTY: header-args+ :mkdirp yes
|
||||
#+PROPERTY: header-args+ :tangle ~/.vimrc
|
||||
:END:
|
||||
@ -165,15 +165,6 @@ Other nice themes are [[https://github.com/mhartington/oceanic-next][oceanic-nex
|
||||
Plug 'vim-scripts/utl.vim' " Univeral Text Linking - Execute URLs, footnotes, open emails, organize ideas
|
||||
#+end_src
|
||||
|
||||
** Others / To test
|
||||
#+begin_src vimrc
|
||||
" Plug 'francoiscabrol/ranger.vim' " Ranger integration in vim and neovim
|
||||
" Plug 'brooth/far.vim' " Find And Replace Vim plugin
|
||||
" Plug 'justinmk/vim-gtfo' " Go to Terminal or File manager
|
||||
" Plug 'sjl/gundo.vim', { 'on': 'GundoToggle' } " Vim plugin to visualize your Vim undo tree
|
||||
" Plug 'drzel/vim-line-no-indicator' " Simple and expressive line number indicator
|
||||
#+end_src
|
||||
|
||||
** Plug End
|
||||
#+begin_src vimrc
|
||||
call plug#end()
|
||||
@ -370,11 +361,21 @@ set smarttab
|
||||
set shiftwidth=4
|
||||
set tabstop=4
|
||||
|
||||
" Enable Line Number
|
||||
set number
|
||||
#+end_src
|
||||
|
||||
From https://stackoverflow.com/questions/36950231/auto-wrap-lines-in-vim-without-inserting-newlines.
|
||||
#+begin_src vimrc
|
||||
" Word wrap without line breaks
|
||||
set textwidth=0
|
||||
set wrapmargin=0
|
||||
set wrap
|
||||
set linebreak
|
||||
set nolist " list disables linebreak
|
||||
" set columns=160
|
||||
#+end_src
|
||||
|
||||
#+begin_src vimrc
|
||||
set autoindent " Auto Indentation
|
||||
set nosmartindent " No Smart Indentation
|
||||
#+end_src
|
||||
@ -402,9 +403,6 @@ autocmd VimResized * wincmd =
|
||||
|
||||
** Misc
|
||||
#+begin_src vimrc
|
||||
" Enable Line Number
|
||||
set number
|
||||
|
||||
" Speed up cursor movments : http://superuser.com/a/625994/587300
|
||||
set regexpengine=1 " https://github.com/xolox/vim-easytags/issues/88
|
||||
|
||||
@ -562,7 +560,7 @@ Taken from: https://vi.stackexchange.com/questions/68/autocorrect-spelling-mista
|
||||
* Filetypes
|
||||
** Vim Which Key
|
||||
#+begin_src vimrc
|
||||
nnoremap <silent> <localleader> :<c-u>WhichKey ','<CR>
|
||||
nnoremap <silent> <leader> :WhichKey '<Space>'<cr>
|
||||
|
||||
let g:which_key_map_local = {}
|
||||
#+end_src
|
||||
@ -571,6 +569,7 @@ let g:which_key_map_local = {}
|
||||
#+begin_src vimrc
|
||||
autocmd FileType mail set spell spelllang=en_us,fr
|
||||
#+end_src
|
||||
|
||||
** MarkDown
|
||||
#+begin_src vimrc
|
||||
" Automatically turn on spell-checking for Markdown files
|
||||
@ -693,7 +692,7 @@ au BufRead,BufNewFile *.ino set filetype=arduino
|
||||
|
||||
** Save Which Key Configuration
|
||||
#+begin_src vimrc
|
||||
call which_key#register(',', "g:which_key_map_local")
|
||||
call which_key#register('<Space>', "g:which_key_map")
|
||||
#+end_src
|
||||
|
||||
* Plugins Config
|
||||
@ -842,8 +841,6 @@ let g:webdevicons_enable_ctrlp = 1
|
||||
This is for soft line breaks
|
||||
#+begin_src vimrc
|
||||
function! s:goyo_enter()
|
||||
set wrap linebreak nolist textwidth=0 wrapmargin=0
|
||||
|
||||
let b:quitting = 0
|
||||
let b:quitting_bang = 0
|
||||
autocmd QuitPre <buffer> let b:quitting = 1
|
||||
@ -945,11 +942,6 @@ let g:tex_conceal = ""
|
||||
let g:EditorConfig_exclude_patterns = ['fugitive://.*']
|
||||
#+end_src
|
||||
|
||||
** Polyglot
|
||||
#+begin_src vimrc
|
||||
let g:polyglot_disabled = ['latex']
|
||||
#+end_src
|
||||
|
||||
* Bindings
|
||||
** Vim Which Key
|
||||
#+begin_src vimrc
|
||||
|
Loading…
Reference in New Issue
Block a user