{"id":3111,"date":"2023-09-06T17:29:17","date_gmt":"2023-09-06T11:59:17","guid":{"rendered":"https:\/\/smarttech101.com\/?p=3111"},"modified":"2023-09-14T17:08:41","modified_gmt":"2023-09-14T11:38:41","slug":"how-to-configure-and-use-the-vim-sneak-for-easy-navigation","status":"publish","type":"post","link":"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/","title":{"rendered":"How to Configure and Use the vim-sneak for Easy Navigation"},"content":{"rendered":"\n<p>As the name suggests, the vim-sneak plugin is used to quickly jump to your target location. If you&#8217;re looking to supercharge navigation skills within the Vim text editor, this guide is for you. This plugin truly amazed me when I first discovered it because it&#8217;s not just useful; it&#8217;s extremely useful. In this article, we&#8217;ll walk you through how to configure and use the vim-sneak plugin, making it a seamless addition to your Vim toolkit. With vim-sneak, you can easily navigate to specific characters or character sequences, enhancing your text-editing efficiency and boosting your overall productivity. Whether you&#8217;re new to Vim or a seasoned user, let&#8217;s dive into the world of effortless navigation.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"460\" height=\"240\" src=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/vim-sneak.gif?resize=460%2C240&#038;ssl=1\" alt=\"Genaral Overview of Vim-Sneak\" class=\"wp-image-3112\"\/><figcaption class=\"wp-element-caption\">Figure 1: Genaral Overview of Vim-Sneak<\/figcaption><\/figure>\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_69_1 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#How_to_Install_the_vim-sneak_Plugin\" title=\"How to Install the vim-sneak Plugin\">How to Install the vim-sneak Plugin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#The_Configuration_File_for_vim-sneak\" title=\"The Configuration File for vim-sneak\">The Configuration File for vim-sneak<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#How_to_Use_vim-sneak_without_Any_Configuration\" title=\"How to Use vim-sneak without Any Configuration\">How to Use vim-sneak without Any Configuration<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#Setting_Labels_on_the_Found_Items_and_Jumping_to_Them\" title=\"Setting Labels on the Found Items and Jumping to Them\">Setting Labels on the Found Items and Jumping to Them<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#Case-Insensitive_Search_Using_vim-sneak\" title=\"Case-Insensitive Search Using vim-sneak\">Case-Insensitive Search Using vim-sneak<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#Remapping_Keys_in_vim-sneak_Plugin_to_Avoid_Conflicts_with_Other_Mappings\" title=\"Remapping Keys in vim-sneak Plugin to Avoid Conflicts with Other Mappings\">Remapping Keys in vim-sneak Plugin to Avoid Conflicts with Other Mappings<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#How_to_Change_the_Sneak_Colors\" title=\"How to Change the Sneak Colors\">How to Change the Sneak Colors<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#Cool_Sneak_Prompts\" title=\"Cool Sneak Prompts\">Cool Sneak Prompts<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#Replace_Vims_Default_%E2%80%98f_and_%E2%80%98t_with_Sneaks_%E2%80%98f_and_%E2%80%98t\" title=\"Replace Vim&#8217;s Default &#8216;f&#8217; and &#8216;t&#8217; with Sneak&#8217;s &#8216;f&#8217; and &#8216;t&#8217;\">Replace Vim&#8217;s Default &#8216;f&#8217; and &#8216;t&#8217; with Sneak&#8217;s &#8216;f&#8217; and &#8216;t&#8217;<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#Conclusion\" title=\"Conclusion\">Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Install_the_vim-sneak_Plugin\"><\/span>How to Install the vim-sneak Plugin<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>First, install the justinmk\/vim-sneak plugin using your favorite plugin manager.<\/p>\n\n\n\n<p>For example, to install it using vim-plug, use the following command in your <code>init.vim<\/code> or <code>.vimrc<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Plug 'justinmk\/vim-sneak'<\/code><\/pre>\n\n\n\n<p>If you are unfamiliar with vim-plug or need detailed instructions on managing plugins with it, please refer to this article: <a href=\"https:\/\/smarttech101.com\/how-to-manage-plugins-in-vim-neovim-ft-vim-plug\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Manage Plugins in Vim\/Neovim with vim-plug<\/a>.<\/p>\n\n\n\n<p>For other plugin managers, consult their respective documentation for installation instructions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"The_Configuration_File_for_vim-sneak\"><\/span>The Configuration File for vim-sneak<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>I like to split my configuration into various files and then source them into <code>init.vim<\/code>:<\/p>\n\n\n\n<p>You can do the same by following the detailed instructions here.<\/p>\n\n\n\n<p>First, create the file <code>~\/.config\/nvim\/plug-config\/sneak.vim<\/code> and then source it in your <code>init.vim<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>source $HOME\/.config\/nvim\/plug-config\/sneak.vim<\/code><\/pre>\n\n\n\n<p>Now, put all the configuration related to <code>vim-sneak<\/code> into this file.<\/p>\n\n\n\n<p>Here is the overall configuration file I have checked to be working.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\" label-mode\nlet g:sneak#label = 1\n\n\" sneak next by pressing s and S\nlet g:sneak#s_next = 1\n\n\" case insensitive search\nlet g:sneak#use_ic_scs = 1\n\n\" remove the default , and ; keybinding set by sneak\nmap gS &lt;Plug&gt;Sneak_,\nmap gs &lt;Plug&gt;Sneak_;\n\n\" colors\nhighlight Sneak guifg=black guibg=#00C7DF ctermfg=black ctermbg=cyan\nhighlight SneakScope guifg=red guibg=yellow ctermfg=red ctermbg=yellow\n\n\" sneak prompt\nlet g:sneak#prompt = '\ud83d\udd0e'\n\n\" better f, F, t, and T\nmap f &lt;Plug&gt;Sneak_f\nmap F &lt;Plug&gt;Sneak_F\nmap t &lt;Plug&gt;Sneak_t\nmap T &lt;Plug&gt;Sneak_T<\/code><\/pre>\n\n\n\n<p>Now, I am going to explain what each part does and how you can further customize it.<\/p>\n\n\n\n<p>The following is a sample text file, you can use to try on this plugin and this configuration. Search for the <code>cm<\/code> as you follow this article.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Plug 'neovim\/nvim-lspconfig'\nPlug 'hrsh7th\/nvim-cmp'\nPlug 'hrsh7th\/cmp-nvim-lsp'\nPlug 'hrsh7th\/cmp-cmdline'\nPlug 'hrsh7th\/cmp-path'\nPlug 'hrsh7th\/cmp-buffer'\nPlug 'hrsh7th\/cmp-calc'<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Use_vim-sneak_without_Any_Configuration\"><\/span>How to Use vim-sneak without Any Configuration<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>By default (i.e., if you have not configured vim-sneak), it works similarly to <code>f<\/code>, <code>F<\/code>, <code>t<\/code>, and <code>T<\/code>.<\/p>\n\n\n\n<p>Press <code>s<\/code> and <code>S<\/code> to search for any two consecutive characters (I will call them &#8216;items&#8217; from now on). The <code>s<\/code> will search in the forward direction, and <code>S<\/code> will search in the backward direction. All the found items will be highlighted. Now, <code>,<\/code> and <code>;<\/code> are used to jump to the forward and backward found items.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"770\" height=\"390\" src=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/default_vim_sneak.png?resize=770%2C390&#038;ssl=1\" alt=\"vim-sneak without any configuration\" class=\"wp-image-3113\" srcset=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/default_vim_sneak.png?w=770&amp;ssl=1 770w, https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/default_vim_sneak.png?resize=768%2C389&amp;ssl=1 768w\" sizes=\"(max-width: 770px) 100vw, 770px\" \/><figcaption class=\"wp-element-caption\">Figure 2: vim-sneak without any configuration<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Setting_Labels_on_the_Found_Items_and_Jumping_to_Them\"><\/span>Setting Labels on the Found Items and Jumping to Them<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To use the sneak-label-mode, set <code>g:sneak#label<\/code> to 1. This creates labels over each found item. These labels are made of single characters found on your keyboard. You can press these characters to jump directly to any of these labels. I find it extremely helpful.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>let g:sneak#label = 1<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"770\" height=\"390\" src=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/vim-sneak_label-mode.png?resize=770%2C390&#038;ssl=1\" alt=\"Power of Vim-Sneak - the sneak-label-mode\" class=\"wp-image-3114\" srcset=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/vim-sneak_label-mode.png?w=770&amp;ssl=1 770w, https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/vim-sneak_label-mode.png?resize=768%2C389&amp;ssl=1 768w\" sizes=\"(max-width: 770px) 100vw, 770px\" \/><figcaption class=\"wp-element-caption\">Figure 3: Power of Vim-Sneak &#8211; the sneak-label-mode<\/figcaption><\/figure>\n\n\n\n<p>Along with these labels, you can also press <code>s<\/code> or <code>S<\/code> repeatedly to navigate through the found items <strong>one by one<\/strong>. For this behavior set the variable <code>g:sneak#s_next<\/code> to 1.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>let g:sneak#s_next = 1<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Case-Insensitive_Search_Using_vim-sneak\"><\/span>Case-Insensitive Search Using vim-sneak<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Just like case-insensitive search, you can also configure case-insensitive Sneak. Here, it will search case-insensitively.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>let g:sneak#use_ic_scs = 1<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Remapping_Keys_in_vim-sneak_Plugin_to_Avoid_Conflicts_with_Other_Mappings\"><\/span>Remapping Keys in vim-sneak Plugin to Avoid Conflicts with Other Mappings<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>By default, the vim-sneak plugin uses many keys. If you find that some of your old mappings are gone after installing this plugin, it&#8217;s because vim-sneak has remapped them. You need to disable these vim-sneak mappings by remapping them to other keys. For example, <a href=\"https:\/\/smarttech101.com\/how-to-use-vim-neovim\/#movement_keys_in_vimneovim\" target=\"_blank\" rel=\"noreferrer noopener\"><code>,<\/code> and <code>;<\/code> are also used by default in vim\/Neovim for <code>f<\/code>, <code>F<\/code>, <code>t<\/code>, and <code>T<\/code> operations<\/a>. To prevent vim-sneak from using it up, you can use the following two lines:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>map gS &lt;Plug&gt;Sneak_,\nmap gs &lt;Plug&gt;Sneak_;<\/code><\/pre>\n\n\n\n<p>This will help you avoid conflicts and ensure that your custom mappings work as intended.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Change_the_Sneak_Colors\"><\/span>How to Change the Sneak Colors<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Default sneak colors are not very appealing. Change them as described below.<\/p>\n\n\n\n<p>For this, the plugin provides two highlight groups &#8211; <code>Sneak<\/code> and <code>SneakScope<\/code>.<\/p>\n\n\n\n<p>The group <code>Sneak<\/code> highlights all the found sneak items. By default, the magenta color is used if you have not set any color.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>highlight Sneak guifg=black guibg=#00C7DF ctermfg=black ctermbg=cyan<\/code><\/pre>\n\n\n\n<p>The group <code>SneakScope<\/code> highlights the <code>sneak-vertical-scope<\/code>, as well as the <code>sneak-label-mode<\/code>. By default, it is white or black depending on your dark\/light background.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>highlight SneakScope guifg=red guibg=yellow ctermfg=red ctermbg=yellow<\/code><\/pre>\n\n\n\n<p>I haven&#8217;t discussed <code>sneak-vertical-scope<\/code> in much detail in this article. To learn about this, use the vim command <code>:help sneak-vertical-scope<\/code>.<\/p>\n\n\n\n<p>The GUI settings are for the GUI version of Vim\/Neovim, <code>bg<\/code> is for background, <code>fg<\/code> is for foreground, and <code>cterm<\/code> is for the terminal version of Vim\/Neovim. <a href=\"https:\/\/smarttech101.com\/how-to-configure-colorscheme-in-vim-neovim\/\" target=\"_blank\" rel=\"noreferrer noopener\">To learn more about <code>guifg<\/code>, <code>ctermfg<\/code>, and how to customize other colors in Vim\/Neovim, refer to this link<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Cool_Sneak_Prompts\"><\/span>Cool Sneak Prompts<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You can change the prompt used by vim-sneak. To do this, set the variable <code>g:sneak#prompt<\/code> to \ud83d\udd0e, \ud83d\udd75, or anything you want.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>let g:sneak#prompt = '\ud83d\udd0e'<\/code><\/pre>\n\n\n\n<p>If your terminal (like <a href=\"https:\/\/smarttech101.com\/urxvt-installation-color-scheme-fonts-resize-etc\/\" target=\"_blank\" rel=\"noreferrer noopener\">Urxvt<\/a> or other minimal ones) is not configured to display these characters, don&#8217;t use these cool prompts. Just don&#8217;t define the variable <code>g:sneak#prompt<\/code>. In that case, it will use the default <code>&gt;<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Replace_Vims_Default_%E2%80%98f_and_%E2%80%98t_with_Sneaks_%E2%80%98f_and_%E2%80%98t\"><\/span>Replace Vim&#8217;s Default &#8216;f&#8217; and &#8216;t&#8217; with Sneak&#8217;s &#8216;f&#8217; and &#8216;t&#8217;<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><a href=\"https:\/\/smarttech101.com\/how-to-use-vim-neovim\/#movement_keys_in_vimneovim\" target=\"_blank\" rel=\"noreferrer noopener\">If you have read my guide on how to use Vim\/Neovim&#8217;s movement<\/a>, you already know that by pressing &#8216;f&#8217;, &#8216;t&#8217;, &#8216;F&#8217;, or &#8216;T&#8217;, you can jump to any characters, but only within the current line.<\/p>\n\n\n\n<p>You can use <code>Sneak_f<\/code>, <code>Sneak_F<\/code>, <code>Sneak_t<\/code>, and <code>Sneak_T<\/code>, and map them accordingly to achieve a better &#8216;f&#8217;, &#8216;t&#8217;, &#8216;T&#8217;, &#8216;F&#8217; behavior. To do this, configure Sneak as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>map f &lt;Plug&gt;Sneak_f\nmap F &lt;Plug&gt;Sneak_F\nmap t &lt;Plug&gt;Sneak_t\nmap T &lt;Plug&gt;Sneak_T<\/code><\/pre>\n\n\n\n<p><strong>How to Use It:<\/strong><\/p>\n\n\n\n<p>Press &#8216;f&#8217; to search for any single character. Then press &#8216;f&#8217; (or &#8216;F&#8217;) again and again to move forward (or backward). The same procedure follows for &#8216;t&#8217; and &#8216;T&#8217;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"770\" height=\"390\" src=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/sneak_f_sneak_t.png?resize=770%2C390&#038;ssl=1\" alt=\"better f and t provided by vim-sneak\" class=\"wp-image-3116\" srcset=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/sneak_f_sneak_t.png?w=770&amp;ssl=1 770w, https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/sneak_f_sneak_t.png?resize=768%2C389&amp;ssl=1 768w\" sizes=\"(max-width: 770px) 100vw, 770px\" \/><figcaption class=\"wp-element-caption\">Figure 4: better f and t provided by vim-sneak<\/figcaption><\/figure>\n\n\n\n<p>But personally, I don&#8217;t want to choose between &#8216;f,&#8217; &#8216;F,&#8217; &#8216;f,&#8217; &#8216;s,&#8217; &#8216;S,&#8217; and &#8216;t&#8217; each time I want to search for something. So I have enabled only the &#8216;s&#8217; and &#8216;S&#8217; functionality mentioned above and don&#8217;t use this configuration anymore.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The plugin also has other functionality which I have not mentioned here, like deleting\/cutting a part of text or vertical. Explore these features by reading the help manual <code>:help sneak.txt<\/code>. That&#8217;s all, folks. Thanks for reading. If you have any comments, questions, or suggestions, please put them in the comment section below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Discover the power of vim-sneak for seamless navigation and text editing in Vim, enhancing productivity for both beginners and seasoned users.<\/p>\n","protected":false},"author":2,"featured_media":3120,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[37],"tags":[40,39],"class_list":["post-3111","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-neovim","tag-neovim","tag-nvim"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Configure and Use the vim-sneak for Easy Navigation | SmartTech101<\/title>\n<meta name=\"description\" content=\"Learn how to effortlessly navigate and supercharge your text editing skills with the vim-sneak plugin in Vim. Boost productivity today!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Configure and Use the vim-sneak for Easy Navigation | SmartTech101\" \/>\n<meta property=\"og:description\" content=\"Learn how to effortlessly navigate and supercharge your text editing skills with the vim-sneak plugin in Vim. Boost productivity today!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/\" \/>\n<meta property=\"og:site_name\" content=\"SmartTech101\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-06T11:59:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-14T11:38:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Configure-and-Use-the-vim-sneak-Plugin-for-Effortless-Navigation.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ajay\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ajay_yadav\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ajay\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/\"},\"author\":{\"name\":\"Ajay\",\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/2edfee738a82f9c963210f8cdb438334\"},\"headline\":\"How to Configure and Use the vim-sneak for Easy Navigation\",\"datePublished\":\"2023-09-06T11:59:17+00:00\",\"dateModified\":\"2023-09-14T11:38:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/\"},\"wordCount\":991,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/e8d5aebc510d698e11e9df6291381633\"},\"image\":{\"@id\":\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Configure-and-Use-the-vim-sneak-Plugin-for-Effortless-Navigation.png?fit=1280%2C720&ssl=1\",\"keywords\":[\"neovim\",\"nvim\"],\"articleSection\":[\"Neovim\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/\",\"url\":\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/\",\"name\":\"How to Configure and Use the vim-sneak for Easy Navigation | SmartTech101\",\"isPartOf\":{\"@id\":\"https:\/\/smarttech101.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Configure-and-Use-the-vim-sneak-Plugin-for-Effortless-Navigation.png?fit=1280%2C720&ssl=1\",\"datePublished\":\"2023-09-06T11:59:17+00:00\",\"dateModified\":\"2023-09-14T11:38:41+00:00\",\"description\":\"Learn how to effortlessly navigate and supercharge your text editing skills with the vim-sneak plugin in Vim. Boost productivity today!\",\"breadcrumb\":{\"@id\":\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Configure-and-Use-the-vim-sneak-Plugin-for-Effortless-Navigation.png?fit=1280%2C720&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Configure-and-Use-the-vim-sneak-Plugin-for-Effortless-Navigation.png?fit=1280%2C720&ssl=1\",\"width\":1280,\"height\":720,\"caption\":\"How to Configure vim-sneak for Effortless Navigation\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/smarttech101.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Configure and Use the vim-sneak for Easy Navigation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/smarttech101.com\/#website\",\"url\":\"https:\/\/smarttech101.com\/\",\"name\":\"SmartTech101\",\"description\":\"Do Everything in Linux\",\"publisher\":{\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/e8d5aebc510d698e11e9df6291381633\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/smarttech101.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/e8d5aebc510d698e11e9df6291381633\",\"name\":\"Ajay Yadav\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/09\/cropped-ST101_logo.png?fit=180%2C60&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/09\/cropped-ST101_logo.png?fit=180%2C60&ssl=1\",\"width\":180,\"height\":60,\"caption\":\"Ajay Yadav\"},\"logo\":{\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/2edfee738a82f9c963210f8cdb438334\",\"name\":\"Ajay\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6eea348caae2173954765a7cdf6cd107?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6eea348caae2173954765a7cdf6cd107?s=96&d=mm&r=g\",\"caption\":\"Ajay\"},\"sameAs\":[\"https:\/\/x.com\/ajay_yadav\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Configure and Use the vim-sneak for Easy Navigation | SmartTech101","description":"Learn how to effortlessly navigate and supercharge your text editing skills with the vim-sneak plugin in Vim. Boost productivity today!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/","og_locale":"en_US","og_type":"article","og_title":"How to Configure and Use the vim-sneak for Easy Navigation | SmartTech101","og_description":"Learn how to effortlessly navigate and supercharge your text editing skills with the vim-sneak plugin in Vim. Boost productivity today!","og_url":"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/","og_site_name":"SmartTech101","article_published_time":"2023-09-06T11:59:17+00:00","article_modified_time":"2023-09-14T11:38:41+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Configure-and-Use-the-vim-sneak-Plugin-for-Effortless-Navigation.png","type":"image\/png"}],"author":"Ajay","twitter_card":"summary_large_image","twitter_creator":"@ajay_yadav","twitter_misc":{"Written by":"Ajay","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#article","isPartOf":{"@id":"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/"},"author":{"name":"Ajay","@id":"https:\/\/smarttech101.com\/#\/schema\/person\/2edfee738a82f9c963210f8cdb438334"},"headline":"How to Configure and Use the vim-sneak for Easy Navigation","datePublished":"2023-09-06T11:59:17+00:00","dateModified":"2023-09-14T11:38:41+00:00","mainEntityOfPage":{"@id":"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/"},"wordCount":991,"commentCount":0,"publisher":{"@id":"https:\/\/smarttech101.com\/#\/schema\/person\/e8d5aebc510d698e11e9df6291381633"},"image":{"@id":"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Configure-and-Use-the-vim-sneak-Plugin-for-Effortless-Navigation.png?fit=1280%2C720&ssl=1","keywords":["neovim","nvim"],"articleSection":["Neovim"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/","url":"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/","name":"How to Configure and Use the vim-sneak for Easy Navigation | SmartTech101","isPartOf":{"@id":"https:\/\/smarttech101.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#primaryimage"},"image":{"@id":"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Configure-and-Use-the-vim-sneak-Plugin-for-Effortless-Navigation.png?fit=1280%2C720&ssl=1","datePublished":"2023-09-06T11:59:17+00:00","dateModified":"2023-09-14T11:38:41+00:00","description":"Learn how to effortlessly navigate and supercharge your text editing skills with the vim-sneak plugin in Vim. Boost productivity today!","breadcrumb":{"@id":"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#primaryimage","url":"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Configure-and-Use-the-vim-sneak-Plugin-for-Effortless-Navigation.png?fit=1280%2C720&ssl=1","contentUrl":"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Configure-and-Use-the-vim-sneak-Plugin-for-Effortless-Navigation.png?fit=1280%2C720&ssl=1","width":1280,"height":720,"caption":"How to Configure vim-sneak for Effortless Navigation"},{"@type":"BreadcrumbList","@id":"https:\/\/smarttech101.com\/how-to-configure-and-use-the-vim-sneak-for-easy-navigation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/smarttech101.com\/"},{"@type":"ListItem","position":2,"name":"How to Configure and Use the vim-sneak for Easy Navigation"}]},{"@type":"WebSite","@id":"https:\/\/smarttech101.com\/#website","url":"https:\/\/smarttech101.com\/","name":"SmartTech101","description":"Do Everything in Linux","publisher":{"@id":"https:\/\/smarttech101.com\/#\/schema\/person\/e8d5aebc510d698e11e9df6291381633"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/smarttech101.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/smarttech101.com\/#\/schema\/person\/e8d5aebc510d698e11e9df6291381633","name":"Ajay Yadav","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smarttech101.com\/#\/schema\/person\/image\/","url":"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/09\/cropped-ST101_logo.png?fit=180%2C60&ssl=1","contentUrl":"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/09\/cropped-ST101_logo.png?fit=180%2C60&ssl=1","width":180,"height":60,"caption":"Ajay Yadav"},"logo":{"@id":"https:\/\/smarttech101.com\/#\/schema\/person\/image\/"}},{"@type":"Person","@id":"https:\/\/smarttech101.com\/#\/schema\/person\/2edfee738a82f9c963210f8cdb438334","name":"Ajay","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smarttech101.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6eea348caae2173954765a7cdf6cd107?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6eea348caae2173954765a7cdf6cd107?s=96&d=mm&r=g","caption":"Ajay"},"sameAs":["https:\/\/x.com\/ajay_yadav"]}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/How-to-Configure-and-Use-the-vim-sneak-Plugin-for-Effortless-Navigation.png?fit=1280%2C720&ssl=1","_links":{"self":[{"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/posts\/3111"}],"collection":[{"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/comments?post=3111"}],"version-history":[{"count":5,"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/posts\/3111\/revisions"}],"predecessor-version":[{"id":3228,"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/posts\/3111\/revisions\/3228"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/media\/3120"}],"wp:attachment":[{"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/media?parent=3111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/categories?post=3111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/tags?post=3111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}