4259 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
search: tag:vim — newest first
  • josa42/coc-go: Go language server extension using gopls for coc.nvim.
    November 15, 2022 - permalink - https://github.com/josa42/coc-go
    go vim
  • fatih/vim-go: Go development plugin for Vim
    November 15, 2022 - permalink - https://github.com/fatih/vim-go
    go vim
  • GitHub - tpope/vim-obsession: obsession.vim: continuously updated session files

    Auto save vim session

    August 25, 2022 - permalink - https://github.com/tpope/vim-obsession
    session vim
  • GitHub - hashicorp/terraform-ls: Terraform Language Server
    July 13, 2022 - permalink - https://github.com/hashicorp/terraform-ls
    terraform vim
  • Complete Guide to getting started with coc.nvim | Develop Paper
    • https://github.com/neovim/nvim-lspconfig/wiki/Comparison-to-other-LSP-ecosystems-(CoC,-vim-lsp,-etc.)
    May 13, 2022 - permalink - https://developpaper.com/complete-guide-to-getting-started-with-coc-nvim/
    autocomplete lsp neovim vim
  • Using command-line history | Vim Tips Wiki | Fandom

    Navigate through your search history (/) or command history (:) without leaving your home row?

    q:

    q/

    Think "query search" and "query command"

    April 23, 2022 - permalink - https://vim.fandom.com/wiki/Using_command-line_history
    history vim
  • Vim for all level

    Practical vim tips and trick for all level

    March 4, 2022 - permalink - https://thevaluable.dev/tags/vim/
    vim
  • Note: tip zsh edit command line

    bindkey -M emacs |grep edit-command
    "^X^E" edit-command-line

    ctrl x ctrl e pour editer la commande actuelle via vim

    February 2, 2022 - permalink - https://links.infomee.fr/shaare/Skfb-A
    command edit vim zsh
  • Get the name of the current file | Vim Tips Wiki | Fandom

    :echo @% def/my.txt directory/name of file (relative to the current working directory of /abc)
    :echo expand('%:t') my.txt name of file ('tail')
    :echo expand('%:p') /abc/def/my.txt full path
    :echo expand('%:p:h') /abc/def directory containing file ('head')
    :echo expand('%:p:h:t') def First get the full path with :p (/abc/def/my.txt), then get the head of that with :h (/abc/def), then get the tail of that with :t (def)
    :echo expand('%:r') def/my name of file less one extension ('root')
    :echo expand('%:e') txt name of file's extension ('extension')

    October 25, 2021 - permalink - https://vim.fandom.com/wiki/Get_the_name_of_the_current_file
    echo file vim
  • Eliminating delays on ESC in vim and zsh - John Hawthorn
    September 23, 2021 - permalink - https://www.johnhawthorn.com/2012/09/vi-escape-delays/
    delay tmux vim zsh
  • replace tab by space or replace spaces by tab in linux — pydata

    :set et|retab

    August 5, 2021 - permalink - https://songhuiming.github.io/pages/2016/07/31/replace-tab-by-space-or-replace-spaces-by-tab-in-linux/
    space tab vim
  • tpope/vim-surround: surround.vim: quoting/parenthesizing made simple
    July 2, 2021 - permalink - https://github.com/tpope/vim-surround
    vim
  • machakann/vim-sandwich: The set of operator and textobject plugins to search/select/edit sandwiched textobjects.
    July 2, 2021 - permalink - https://github.com/machakann/vim-sandwich
    vim
  • Note: vim et plugin Ack

    le plugin Ack permet de chercher dans le repertoire courant de vim (celui qu'on voit avec :pwd)
    Pour chercher seulement dans un seul repertoire, il faut changer ce repertoire courant. Quelques commandes pratiques :

    :Gcd (fournit par fugitive vim) permet de remonter à la racine du repot git

    Dans nerdtree, si on se place sur un repertoire et qu'on fait 'cd', le repertoire courant de vim est changé

    Une fois dans le bon repertoire, on peut chercher avec :Ack! pattern

    June 18, 2021 - permalink - https://links.infomee.fr/shaare/rKuCFQ
    ack vim
  • Creating a new file or directory in Vim using NERDTree - Kevin Sookocheff
    November 6, 2020 - permalink - https://sookocheff.com/post/vim/creating-a-new-file-or-directoryin-vim-using-nerdtree/
    vim
  • GitHub - davidhalter/jedi-vim: Using the jedi autocompletion library for VIM.
    April 22, 2020 - permalink - https://github.com/davidhalter/jedi-vim
    python vim
  • Sessions: The vim Feature You Probably Aren't Using - tools and workflow - Bocoup
    November 27, 2019 - permalink - https://bocoup.com/blog/sessions-the-vim-feature-you-probably-arent-using
    layout save session vim
  • How can I copy text to the system clipboard from Vim? - Vi and Vim Stack Exchange

    Copy in vim to system clipboard
    "+y

    November 20, 2019 - permalink - https://vi.stackexchange.com/questions/84/how-can-i-copy-text-to-the-system-clipboard-from-vim
    clipboard copy vim
  • GitHub - tpope/vim-unimpaired: unimpaired.vim: Pairs of handy bracket mappings

    https://github.com/tpope/vim-unimpaired/blob/master/doc/unimpaired.txt

    November 18, 2019 - permalink - https://github.com/tpope/vim-unimpaired
    plugin vim
  • Using Vim's named registers

    Appending to a named register

    Using an uppercase letter tells Vim to append text to the specified register (rather than overwriting the existing contents). For example, "Ayy copies the current line, and appends it to register ‘a’.

    <3

    November 6, 2019 - permalink - http://vimcasts.org/episodes/using-vims-named-registers/
    register vim
  • How to paste yanked text to vim command-line? - Super User

    You can do " to paste from the default register or a to paste from register a.

    October 24, 2019 - permalink - https://superuser.com/questions/470727/how-to-paste-yanked-text-to-vim-command-line
    command paste vim
  • keyboard shortcuts - How to put current line at top/center/bottom of screen in vim? - Unix & Linux Stack Exchange

    zt
    zb
    zz

    zs
    ze

    October 6, 2019 - permalink - https://unix.stackexchange.com/questions/110251/how-to-put-current-line-at-top-center-bottom-of-screen-in-vim
    vim
  • scroll - How to move screen without moving cursor in Vim? - Stack Overflow

    Additionally:

    Ctrl-y Moves screen up one line
    Ctrl-e Moves screen down one line
    Ctrl-u Moves cursor & screen up ½ page
    Ctrl-d Moves cursor & screen down ½ page
    Ctrl-b Moves screen up one page, cursor to last line
    Ctrl-f Moves screen down one page, cursor to first line
    

    Ctrl-y and Ctrl-e only change the cursor position if it would be moved off screen.

    August 26, 2019 - permalink - https://stackoverflow.com/questions/3458689/how-to-move-screen-without-moving-cursor-in-vim
    move vim
  • GitHub - dhruvasagar/vim-zoom: Toggle zoom in / out individual windows (splits)
    August 20, 2019 - permalink - https://github.com/dhruvasagar/vim-zoom
    plugin vim zoom
  • Is better way to zoom windows in Vim than ZoomWin? - Stack Overflow

    I try to use vim without any plugins as I don't want to rely on them when I work on another system. Coming upon this same issue now, I can propose some 'better ways' (alternative ways) as requested by the OP:

    c-w-| to have window take over (if using vsplits). c-w-= to restore. c-w-_ for horizontal splits
    close the other window(s), thereby making current one fullscreen. Split and re-open from buffer to restore
    
    August 17, 2019 - permalink - https://stackoverflow.com/questions/13194428/is-better-way-to-zoom-windows-in-vim-than-zoomwin
    vim zoom
  • All the right moves | Vim Tips Wiki | FANDOM powered by Wikia
    August 16, 2019 - permalink - https://vim.fandom.com/wiki/All_the_right_moves
    move vim
  • GitHub - scrooloose/nerdtree: A tree explorer plugin for vim.

    Comment j'ai fait pour me passer de nerdtree?

    July 29, 2019 - permalink - https://github.com/scrooloose/nerdtree
    vim
  • Vim: you don't need NERDtree or (maybe) netrw | George Ornbo
    May 8, 2019 - permalink - https://shapeshed.com/vim-netrw/
    browser vim
  • Note: vim

    current line in top of screen : z
    go to next blank line (paragraph) : }

    March 28, 2019 - permalink - https://links.infomee.fr/shaare/jNJo8g
    vim
  • Vim After 15 Years | Ian Langworth’s Things of Variable Interest

    https://github.com/junegunn/fzf
    https://vimawesome.com/plugin/ack-vim
    https://vimawesome.com/plugin/unimpaired-vim

    October 20, 2017 - permalink - https://statico.github.io/vim3.html
    vim
  • sickill/vim-monokai: Monokai color scheme for Vim converted from Textmate theme
    June 7, 2017 - permalink - https://github.com/sickill/vim-monokai
    color vim
  • Dracula — A dark theme for Vim and 40+ apps
    June 7, 2017 - permalink - https://draculatheme.com/vim/
    color vim
  • Fugitive.vim - exploring the history of a git repository

    :Glog

    :clist
    :cprev
    :cnext
    :cfirst
    :clast

    April 27, 2017 - permalink - http://vimcasts.org/episodes/fugitive-vim-exploring-the-history-of-a-git-repository/
    fugitive vim
  • linux - How to expand/collapse a diff sections in Vimdiff? - Stack Overflow

    zo
    zc

    February 9, 2017 - permalink - http://stackoverflow.com/questions/5288875/how-to-expand-collapse-a-diff-sections-in-vimdiff
    vim vimdiff
  • File format | Vim Tips Wiki | Fandom powered by Wikia
    December 29, 2016 - permalink - http://vim.wikia.com/wiki/File_format
    CR CRLF LF convert file format git vim
  • Fugitive.vim - resolving merge conflicts with vimdiff

    :Gdiff
    :dp

    December 9, 2016 - permalink - http://vimcasts.org/episodes/fugitive-vim-resolving-merge-conflicts-with-vimdiff/
    fugitive merge vim
  • Note: inception

    I've edited my .vimrc to add fugitive plugin and commited it by using fugitive

    December 9, 2016 - permalink - https://links.infomee.fr/shaare/4Ww4qQ
    git vim
  • The Fugitive Series - a retrospective

    <3

    December 9, 2016 - permalink - http://vimcasts.org/blog/2011/05/the-fugitive-series/
    fugitive vim
  • How to resolve git merge conflicts with Vim - Flaviu Simihaian's Blog - Entrepreneur and Developer

    \o/

    December 9, 2016 - permalink - http://flaviusim.com/blog/how-to-do-a-git-merge-with-vim/
    git merge vim
  • Edit a file in-place in vim - Stack Overflow

    Comment perdre 30 min

    :set backupcopy=yes

    When you want to modify a file, you have two options, each with its benefits and drawbacks.

    You can overwrite the file in place. This does not use any extra space, and conserves the hard links, permissions and any other attribute beyond the content of the existing file. The major drawback of doing this is that if anything happens while the file is being written (the application crashes, or the power goes out), you end up with a partially written file.
    You can write the new version of the file to a new file with a different name, then move it into place. This uses more space and breaks hard links, and if you have write permissions on a file but not on the directory it contains, you can't do it at all. On the flip side, the old version of the file is atomically replaced by the new version, so at every point in time the file name points to a valid, complete version of the file.
    

    http://vimdoc.sourceforge.net/htmldoc/options.html#%27backup%27

    November 23, 2016 - permalink - http://stackoverflow.com/questions/11043534/edit-a-file-in-place-in-vim
    docker file mount vim
  • Sort lines | Vim Tips Wiki | Fandom powered by Wikia

    vim <3

    :sort u

    November 21, 2016 - permalink - http://vim.wikia.com/wiki/Sort_lines
    sort vim
  • Fugitive.vim - working with the git index

    je découvre ce plugin vim qui a l'air juste magique pour interagir avec git

    November 16, 2016 - permalink - http://vimcasts.org/episodes/fugitive-vim-working-with-the-git-index/
    git plugin vim
  • Note: vimdiff and included colorscheme

    They all sux to visualize difference EXCEPT:
    1) murphy
    2) torte

    :colorscheme murphy

    June 23, 2016 - permalink - https://links.infomee.fr/shaare/3de1_g
    color vim vimdiff
  • Select rectangular screen area | commandlinefu.com

    Peut etre utile pour cc à la souris dans un split vim ou screen!

    Aussi pour cc plusieurs lignes dans vim sans prendre la column number :)

    January 11, 2016 - permalink - http://www.commandlinefu.com/commands/view/15021/select-rectangular-screen-area
    screen selection terminal tips vim
  • A vim Tutorial and Primer

    Encore un bon article sur vim

    October 2, 2015 - permalink - https://danielmiessler.com/study/vim/?fb_ref=118ef0e03ab54c0d8197214328648a68-Hackernews
    tuto vim
  • Easier buffer switching - Vim Tips Wiki

    Pour changer de buffer, je faisais :
    :ls (pour récupérer la liste des buffers et trouver le numéro du buffer)
    :b5 (pour switcher sur le buffer 5)

    Pas trop pratique, du coup une alternative sympa :

    Put the following in your vimrc:

    set wildchar= wildmenu wildmode=full

    Ensuite il suffit de faire :
    :b

    Pour avoir la liste des buffers et itérer dessus avec tab jusqu'à être sur le bon puis

    October 2, 2015 - permalink - http://vim.wikia.com/wiki/Easier_buffer_switching
    buffer vim
  • Insérer de l'ascii dans vim

    en mode insert : ^V et le code ascii

    exemple :ctrl V 003

    June 19, 2015 - permalink - https://links.infomee.fr/shaare/a268SQ
    ascii vim
  • Habit breaking, habit making

    [Summary, full note in Shaarli]
    Habit breaking, habit making (Vimcasts, Feb 6, 2013).

    • Moving with the arrow keys is a bad habit. Disable them in your vimrc to get back to the home row (h j k l):
      noremap
      noremap
      noremap
      noremap
    • Next step: moving one line or column at a time is slow too, holding j is an anti-pattern. As an exercise, disable h j k l the same way (noremap h , ...) to force yourself to learn real motions. Each new motion is like a new word in a foreign language.
    • Wordwise motions, ~5x faster than h/l: w and b (start of next/previous word), then e and ge (end of word); W B E gE do the same for WORDs (:help word).
    • Character search within a line: f{char} jumps to the next {char}, t{char} to just before it, F/T backwards, ; repeats, , reverses. Aim at rare characters (punctuation, capitals): two keystrokes usually get you there. Set 'visualbell' to mute the beep.
    • Keep h and l for off-by-one corrections (f instead of t, neighbouring character).
    • The hardmode plugin toggles everything at once: :call HardMode() and :call EasyMode().
    June 10, 2015 - permalink - http://vimcasts.org/blog/2013/02/habit-breaking-habit-making/
    arrow motion vim
  • CtrlP root markers

    J'utilisais jusqu'à présent aucun plugin vim.. mais l'ouverture de fichier et le switch entre les différents buffers est pénible quand on passe beaucoup de temps dans Vim..

    Du coup je teste ctrlP qui est plutot bien une fois configuré !

    J'utilise pathogen pour gérer mes plugins, donc dans l'ordre :
    - il faut installer pathogen
    - ensuite installer ctrlp

    Dans le vimrc :

    "" CtrlP
    map :CtrlPBuffer
    map :CtrlP

    on a ctrl+B pour naviguer entre les buffers et ctrl+P pour lancer une recherche et ouvrir un fichier

    La root de la recherche peut être modifié (par défaut c'est le dossier du fichier ouvert en cours)

    On peut lui dire par exemple de remonter jusqu'au .git ou au .svn

    Dans mon cas, encore en svn 1.6, il y a un .svn à tous les niveaux... la solution, définir un root marker dans son vimrc :

    let g:ctrlp_root_markers = ['.ctrlp']

    et ensuite créer ce marker là ou on veut que la recherche se base

    $ touch .ctrlp

    March 12, 2015 - permalink - https://coderwall.com/p/5xv7sq/ctrlp-root-markers
    ctrlp vim
  • Vim Awesome
    January 1, 2015 - permalink - http://vimawesome.com/
    vim
▼ Load 50 more